package cn.com.hhrcw.personal.wxlogin.util;

import lombok.extern.slf4j.Slf4j;

import java.util.UUID;

/**
 * @author lixingxing
 */
@Slf4j
public class WxBindTokenUtil {
    public static  final String PREFIX="WX_BIND_";


    public static String createToken(){
        final  String token=PREFIX+ UUID.randomUUID().toString().replace("-","").toUpperCase();
        log.info("token:{}",token);
        return  token;
    }

    public static String getUserIdToken(String token ){
        final  String token2=token+"_USER_ID" ;
        return  token2;
    }

    public static String getWxObjToken(String token ){
        final  String token2=token+"_WXOBJ_ID" ;
        return  token2;
    }


}
